<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<link href="/js/kindeditor-4.1.10/themes/default/default.css" type="text/css" rel="stylesheet">
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>
<style type="text/css">
.item_title{
    font-size: 16px;
}
</style>
<div style="padding:10px 100px 10px 100px">
	<form id="itemAddForm" class="itemForm" method="post">
<!-- 	
	<div id="cc" class="easyui-layout" style="width:100%;height:800px;fit:true">
	    <div data-options="region:'north',title:'基本信息',split:true" style="height:200px;"></div>
	    <div data-options="region:'center'">
		    <div id="cc1" class="easyui-layout" style="width:100%;height:400px;fit:true;">
		        <div data-options="region:'north',title:'扩展属性',split:true" style="height:100px;"></div>
		        <div data-options="region:'center',title:'商品规格'" style="padding:5px;background:#eee;"></div>
		        <div data-options="region:'south',title:'图片和描述',split:true" style="height:100px;"></div>
		    </div>
		</div>
	</div> 
-->
	    <table cellpadding="5">
	        <tr>
	            <td>增值税资料审核状态:</td>
	            <td>
	            	<a href="javascript:void(0)" class="easyui-linkbutton selectItemCat">选择类目</a>
	            	<input type="hidden" id="categoryId" name="categoryId" style="width: 280px;"></input>
	            </td>
	        </tr>
	        
            <tr><td colspan="2" class="item_title">开票公司名称</td></tr>
            <tr><td colspan="2"><hr/></td></tr>
            
	        <tr>
                <td>税号:</td>
			    <td>
			        <input  id="brandId" name="brandId" required="required" class = "easyui-combobox"/>&nbsp;&nbsp;&nbsp;
                </td>
            </tr>
	        <tr>
	            <td>地址:</td>
	            <td><input class="easyui-textbox" type="text" name="productName" data-options="required:true"></input></td>
	        </tr>
	        <tr>
	            <td>电话:</td>
	            <td><input class="easyui-textbox" type="text" name="productCode" data-options="required:true" ></input></td>
	        </tr>
	        <tr>
	            <td>银行:</td>
	            <td><input class="easyui-textbox" type="text" name="unit"/></td>
	        </tr>
	        <tr>
	            <td>账号:</td>
	            <td><input class="easyui-textbox" type="text" name="packageInfo"/></td>
	        </tr>
	        <tr>
	            <td>上传附件:</td>
	            <td>
	                <input id="minBuyNum" name="minBuyNum" required="required" class="easyui-numberspinner" data-options="min:1,editable:true">
	            </td>
	        </tr>
	        <tr>
	            <td>发票收件人:</td>
	            <td>
	                <input id="packageNum" name="packageNum" required="required" class="easyui-numberspinner" data-options="min:1,editable:true">
	            </td>
	        </tr>
	        <tr>
	        
	        <tr><td colspan="2" class="item_title">发票收件人联系电话</td></tr>
	        <tr id="extend_attr_div"><td colspan="2"><hr/></td></tr>
	        
	         
            <tr><td colspan="2" class="item_title">发票收件地址</td></tr>
            <tr><td colspan="2"><hr/></td></tr>
            
            <tr>
                <td>提交日期:</td>
                <td><input class="easyui-textbox" name="summary" data-options="multiline:true,validType:'length[0,150]'" style="height:60px;width: 280px;"></input></td>
            </tr>
       </table>
	    <input type="hidden" name="extendattrs"/>
	    <input type="hidden" name="skuids"/>
	    <input type="hidden" name="id"/>
	    <input type="hidden" name="specification"/>
	</form>
	<div style="padding:5px">
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="submitForm()">保存</a>
	    <a href="javascript:void(0)" class="easyui-linkbutton" onclick="clearForm()">重置</a>
	</div>
</div>

<div id="AddItemSkuWindow" class="easyui-window" title="添加规格" data-options="modal:true,closed:true,iconCls:'icon-save'" style="width:60%;height:80%;padding:10px;">
    <div id="cc" class="easyui-layout" style="width:100%;height:100%;">   
	    <div data-options="region:'north',title:'规格属性',split:true" style="height:40%;">
            <table id="itemSkuValueList_dategrid" class="easyui-datagrid" style="width: 900px;"></table>
	    </div>   
	    <div id="AddItemSkuWindow_center" data-options="region:'center',title:'阶梯价格'" style="padding:5px;background:#fff;">
	        <div class="stepprice_class" style="width: 98%;height: 30px;padding-left: 2%;margin-top: 20px;">
	            <div class="stepprice_child_class" style="width:63%;height:30px;float:left;">
			        <input id="pricebegin0" name="pricebegin0" required="required" value="1" class="easyui-numberspinner" data-options="min:0,editable:true"><label>-</label>
			        <input id="priceend0"   name="priceend0"   required="required" value="49" class="easyui-numberspinner" data-options="min:0,editable:true">
			        <input id="price0"      name="price0"      required="required" value="1" class="easyui-numberspinner" data-options="min:0,editable:true" precision="2"><label>元</label>
	            </div>
		        <div style = "width:30%;height:30px;float:left;margin-left:5px;">
                   <a href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-add"  plain="true" ></a>
               </div>
	       </div>
	   </div> 
	   <div data-options="region:'south',split:true,border:false" style="height:50px;padding-right: 20px;padding-top: 10px;margin-left: 90%">
	           <a href="javascript:void(0)" class="easyui-linkbutton" onclick="saveItemSku()">确定</a>
               <a href="javascript:void(0)" class="easyui-linkbutton" onclick="$('#AddItemSkuWindow').window('close')">取消</a>
	   </div>  
	</div>  
</div>

<!-- 查看阶梯价格dialog -->
<div id="stepPriceDialog" class="easyui-dialog" title="阶梯价格" modal="true" closed="true"  border="false">
       <div data-options="region:'center'" style="width:100%;height:78%;min-height:100px;"border="true" >
            <table class="easyui-datagrid" id="stepprice_datagrid"></table>
       </div> 
       <div data-options="region:'south'" border="false" style="min-height:30px;height:20%">
           <div style="width:80%;margin-left:10px;text-align:right;margin-top:5px;">
               <input name="" type="button" class="scbtn" onclick="$('#stepPriceDialog').dialog('close');" value="确定"/>
           </div>  
      </div> 
</div> 

<script type="text/javascript" src="${path}/js/item/item-add.js"></script>